<?php
define("ATHENA_VERSION","5.0");
define("WEB_NAME","客户网站名称");
define("WEB_URL","http://www.warmy.cn/");
define("WEB_CLOSE_MESSAGE","系统正在维护，稍后再访问");
define("WEB_SYSTEM_MESSAGE","系统发生错误，请与管理员联系");
define("WEBMASTER","peace@warmy.cn");
define("MANAGE_TITLE","WNET 管理系统");
define("MANAGE_EDITOR","/fckeditor/editor/fckeditor.html?Toolbar=Basic&amp;InstanceName=");
define("MANAGE_VIRTUAL","/yd-admin/");
define("UPLOAD_FILE_PATH","/upload/");
define("DOCUMENTROOT",realpath(dirname(__FILE__)));
define("SITE_VIRTUAL",str_ireplace(str_replace("\\","/",realpath($_SERVER['DOCUMENT_ROOT'])),'',str_replace("\\","/",DOCUMENTROOT)));
define("TEMPLATE",DOCUMENTROOT.MANAGE_VIRTUAL."inc/");
define("CACHE_PATH",DOCUMENTROOT."/cache/cache/");
define("CHARSET","UTF-8");
//define("MICRO_RIGHT_SET",1);
define("ATHENA_CMD_ADD",1);
define("ATHENA_CMD_EDIT",2);
define("ATHENA_CMD_DELETE",4);
define("ATHENA_CMD_AUDITING",8);
define("ATHENA_SCRIPT_INDEX","index.php");
//define("MANAGE_TABLE_WIDTH",100);
define("AUDITING_MICROCODE","0,<font color=red>待审</font>,1,通过");
define("MEMBER_KEY","test");
//Cookie配置
define('COOKIE_DOMAIN', ''); //Cookie 作用域

define('COOKIE_PATH', '/'); //Cookie 作用路径
define('COOKIE_PRE', 'warmy'); //Cookie 前缀，同一域名下安装多套WCMS时，请修改Cookie前缀
define('COOKIE_TTL', 0); //Cookie 生命周期，0 表示随浏览器进程
define("TIME",time());

define("AUTH_KEY","LPHxXKmtOVNWcahZwXRB");
define("PASSWORD_KEY","warmy");

define("USERTABLE","username");
define("RIGHTTABLE","uright");
define("GROUPTABLE","ugroup");
define("GROUPNAMETABLE","usergroup");
define("FUNCTIONTABLE","function");
define("WMODELTABLE","wmodel");
define("WWCMSLOGTABLE","wcms_log");
define("WWCMSATTACHETABLE","wcms_attache");
define("WCMS_DBBACKUPTABLE","wcms_dbbackup");

//前台发布信息允许的HTML标签，可防止XSS跨站攻击
define('ALLOWED_HTMLTAGS', '<a><p><br><hr><h1><h2><h3><h4><h5><h6><font><u><i><b><strong><div><span><ol><ul><li><img><table><tr><td><map>'); 
//由于系统表格改为百分比，因此TD的宽度相对百分比值
$MANAGE_TABLE_TD = 15;
//设置系统时区
date_default_timezone_set("Asia/Shanghai");
$ini_array = parse_ini_file( DOCUMENTROOT. "/web.ini");
while(list($key,$value) = each($ini_array))
	define($key,$value);
unset($ini_array);
include_once(DOCUMENTROOT."/class/WCheckSet.php");

?>